
<!doctype html>
<html lang="en">
<head>
<META HTTP-EQUIV="pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 
<META HTTP-EQUIV="expires" CONTENT="0">
<meta charset="UTF-8" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../../layui/css/layui.css" media="all">
<script src="../../../layui/layui.js" charset="utf-8"></script>
<script src="../../../js/angular.js" charset="utf-8"></script>
<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../gjjhbj/fy.js"></script>


	<link rel="stylesheet" href="../../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../../css/news.css" media="all" />
	<script type="text/javascript" src="../../../layui/layui/GetPath.js"></script>
	<script src="../../../layui/layui/layui.js" charset="utf-8"></script>
<style>
.layui-form-label {
	text-align: right;
}
.layui-form-item{
	height:30px;
	width:100%;
}
</style>


</head>
<body class="childrenBody">
	<div ng-app="myApp" ng-controller="customersCtrl" align="center">
<Loading></Loading>
<div class="layui-inline" align="center">
	      <label class="layui-form-label" style="width: 80px" >姓名:</label>
	      <div class="layui-input-inline">
	        <input class="layui-input" id="test8" type="text" ng-model="xmc" >
	      </div>
	    </div>
	    
  		<div class="layui-inline" align="center">
	      <label class="layui-form-label" style="width: 80px" >证件号码:</label>
	      <div class="layui-input-inline">
	        <input class="layui-input" id="test8" type="text" ng-model="zjc">
	      </div>
	        <input ng-click="chaxun()" type="button" readonly="readonly" class="layui-btn layui-btn-primary" value="查&nbsp;&nbsp;&nbsp;&nbsp;询">
	    </div>
					<table class="layui-table" style="width:90%">
					<tr align="center" style="background-color:#f1f1f1">
						<td ng-show=false>当前行数</td>
						<td ng-show=false>id</td>
						<td>姓名</td>
						<td>日期</td>
						<td>变更前个人缴存额</td>
						<td>变更前单位缴存额</td>
						<td>变更后个人缴存额</td>
						<td>变更后单位缴存额</td>
						<td>变更前工资基数</td>
						<td>变更后工资基数</td>
						<td>状态</td>
						<td>操作</td>

					</tr>
					<tr ng-repeat="x in names" align="center">
						<td ng-if="$odd" ng-show=false style="background-color:#f1f1f1">{{
							$index+1 }}</td>
						<td ng-if="$even" ng-show=false>{{ $index+1 }}</td>
						<td ng-if="$odd" ng-show=false style="background-color:#f1f1f1">{{
							x.ID }}</td>
						<td ng-if="$even" ng-show=false>{{x.ID }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{
							x.XINGMING }}</td>
						<td ng-if="$even">{{ x.XINGMING }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.LRRQ
							}}</td>
						<td ng-if="$even">{{ x.LRRQ }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.BGQGRJCE
							}}</td>
						<td ng-if="$even">{{ x.BGQGRJCE }}</td>
						<td ng-if="$odd" id="grzh" style="background-color:#f1f1f1">{{
							x.BGQDWJCE }}</td>
						<td ng-if="$even">{{ x.BGQDWJCE }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.BGHGRJCE
							}}</td>
						<td ng-if="$even">{{ x.BGHGRJCE }}</td>
						<td ng-if="$odd" id="grzh" style="background-color:#f1f1f1">{{
							x.BGHDWJCE }}</td>
						<td ng-if="$even">{{ x.BGHDWJCE }}</td>
						<td ng-if="$odd" id="grzh" style="background-color:#f1f1f1">{{
							x.BGQGZJS }}</td>
						<td ng-if="$even">{{ x.BGQGZJS }}</td>
						<td ng-if="$odd" id="grzh" style="background-color:#f1f1f1">{{
							x.BGHGZJS }}</td>
						<td ng-if="$even">{{ x.BGHGZJS }}</td>
							<td ng-if="$odd" id="grzh" style="background-color:#f1f1f1">{{
							x.STATUS }}</td>
						<td ng-if="$even">{{ x.STATUS }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1"><a
							style="color: red;" ng-click="bj111($index)" href="#">删除</a>
						</td>
						<td ng-if="$even"><a
							style="color: red;" ng-click="bj111($index)" href="#">删除</a>
						</td>
					</tr>
				</table>
			
			<div class="layui-btn-group">
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Sy()">首页</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Previous()">上一页</button>
				<button ng-repeat="page in pageList"
					class="layui-btn layui-btn-primary layui-btn-sm "
					ng-click="selectPage(page)">{{page}}</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Next()">下一页</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Wy()">尾页</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm ">{{selPage}}/{{pages}}</button>
			</div>
		</div>
		
</div>
	
	
	<script>
				layui.use('layer', function(){
  var layer = layui.layer;
  
});  
	</script>
	<script type="text/javascript">
		function getPath() {
			return 'http://' + location.host;
		}
		
		var app = angular.module('myApp', []);
		 app.directive('loading', function(){  
		        return {  
		            restrict: 'E',  
		            transclude: true,  
		            template: '<div ng-show="loading" class="loading" id="allDiv"  style="position:fixed; top:0px; left:0px; width:100%; height:100%; display:none; background-color:#000; opacity: 0.5; z-index:99999;">'  
		            +'<img alt="" src="../../../layui/layui/img/jz.gif" style="vertical-align: middle;width:30px; height:30px; position: absolute; top:50%; left:50%; margin-top: -50px; margin-left:-50px;"/>'
		            +'</div>',  
		            link: function (scope, element, attr) {  
		                scope.$watch('loading', function (val) {  
		                    if (val){  
		                        document.getElementById("allDiv").style.display = "block";  
		                    }else{  
		                        document.getElementById("allDiv").style.display = 'none';  
		  
		                    }  
		                });  
		            }  
		        };
		    }); 
		  app.controller('customersCtrl', function($scope, $http) {
		    $scope.setLoading =function(){  
			    if($scope.loading ==undefined || $scope.loading ==false){  
			        $scope.loading=true;  
			    }else{  
			        $scope.loading=false;  
			    };
			};
			sc();
			function sc(){
		    $scope.setLoading();
		    	$http({
							url:getPath() + "/wsyyt/dwbjhjqccontroller/sh",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{ZJHM:$scope.zjc,XINGMING:$scope.xmc}
						})
					.then(function(res) {
					  $scope.setLoading();
					 if(res.data.msg==null)
								 {
								 	layer.msg("登陆失效请重新登陆");
									setTimeout(function () {
										window.top.location.href=res.data;
									}, 1500);
									return;
								 }
								 if(res.data.msg!='成功'){
									layer.alert('提示：'+res.data.msg, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});	
								     return;
								     }
								 $scope.names=res.data.data;
								 feny($scope.names);
						console.info(1);
					});
					}
					$scope.chaxun=sc;
					$scope.bj111=function (index1){
				    index1=($scope.selPage-1)*20+index1;
					
					layer.confirm('提示：确认删除？', {
							skin: 'layui-layer-molv',anim: 1,
							icon: 5    ,
							  btn: ['确认','取消'] //可以无限个按钮
							  ,btn1: function(index, layero){
							  	$scope.setLoading();
							  	$http({
							url:getPath() + "/wsyyt/dwbjhjqccontroller/delete",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{ID:$scope.names[index1].ID}
						})
					.then(function(res) {
					  $scope.setLoading();
					 if(res.data.msg==null)
								 {
								 	layer.msg("登陆失效请重新登陆");
									setTimeout(function () {
										window.top.location.href=res.data;
									}, 1500);
									return;
								 }
					window.location.reload();
								 $scope.names=res.data.data;
								 feny($scope.names);
						console.info(1);
					});
							  }
							});
					
					
					}
					})
					
	</script>
	<script type="text/javascript"
		src="../../../layui/lay/modules/layer.js"></script>
	<script type="text/javascript" src="../../../layui/layui/layer.ext.js"></script>
	<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
		<script type="text/javascript" src="../../../js/log.js"></script>
	
	<script type="text/javascript">
			

	</script>
</body>
</html>